// 注册
var myFoot = {
    template: '\
        <ul><li  @click="mainMenu(0)" >\
          <div class="foot-up"><i class="fa fa-home"></i></div>\
          <div class="foot-down">首页</div>\
        </li>\
        <li @click="mainMenu(1)">\
          <div class="foot-up"><i class="fa fa-shopping-cart"></i></div>\
          <div class="foot-down">店铺管理</div>\
        </li>\
        <li @click="mainMenu(2)">\
          <div class="foot-up"><i class="fa fa-map-marker"></i></div>\
          <div class="foot-down">商品管理</div>\
        </li>\
        <li @click="mainMenu(3)">\
          <div class="foot-up"><i  class="fa fa-bar-chart"></i></div>\
          <div class="foot-down">我的</div>\
        </li></ul>\
        ',
    methods: {
        mainMenu: function(i) {
            $("ul li").removeClass("active");
            $("ul li:nth(" + i + ")").addClass("active");
            this.$emit('choose', i);
        }
    },
    watch: {
        // 'menu': {
        //     handler: 'watchMenu'
        // }
    }
}
